package com.ganinfo.sys.model;

import java.io.Serializable;

/**
 * @ClassName:   SysPermission
 * @Description: [sys_permission]实体类
 * @author:      ruikanwang
 * @date:        
 */
public class SysPermission implements Serializable {

	private static final long serialVersionUID = 1L;
	
	//主键
	private java.lang.Long id;
	//资源名称
	private java.lang.String name;
	//资源类型：menu,button,
	private java.lang.String type;
	//访问url地址
	private java.lang.String url;
	//权限代码字符串
	private java.lang.String percode;
	//父结点id
	private java.lang.Long parentid;
	//父结点id列表串
	private java.lang.String parentids;
	//排序号
	private java.lang.String sortstring;
	//是否可用,1：可用，0不可用
	private java.lang.String available;
	
	/**
	 * @Title: getId
	 * @Description: 获取主键
	 * @return
	 * @return: java.lang.Long
	 */
	public java.lang.Long getId() {
		return id;
	}
	
	/**
	 * @Title: setId
	 * @Description: 设置主键
	 * @param id
	 * @return: void
	 */
	public void setId(java.lang.Long id) {
		this.id = id;
	}
	/**
	 * @Title: getName
	 * @Description: 获取资源名称
	 * @return
	 * @return: java.lang.String
	 */
	public java.lang.String getName() {
		return name;
	}
	
	/**
	 * @Title: setName
	 * @Description: 设置资源名称
	 * @param name
	 * @return: void
	 */
	public void setName(java.lang.String name) {
		this.name = name;
	}
	/**
	 * @Title: getType
	 * @Description: 获取资源类型：menu,button,
	 * @return
	 * @return: java.lang.String
	 */
	public java.lang.String getType() {
		return type;
	}
	
	/**
	 * @Title: setType
	 * @Description: 设置资源类型：menu,button,
	 * @param type
	 * @return: void
	 */
	public void setType(java.lang.String type) {
		this.type = type;
	}
	/**
	 * @Title: getUrl
	 * @Description: 获取访问url地址
	 * @return
	 * @return: java.lang.String
	 */
	public java.lang.String getUrl() {
		return url;
	}
	
	/**
	 * @Title: setUrl
	 * @Description: 设置访问url地址
	 * @param url
	 * @return: void
	 */
	public void setUrl(java.lang.String url) {
		this.url = url;
	}
	/**
	 * @Title: getPercode
	 * @Description: 获取权限代码字符串
	 * @return
	 * @return: java.lang.String
	 */
	public java.lang.String getPercode() {
		return percode;
	}
	
	/**
	 * @Title: setPercode
	 * @Description: 设置权限代码字符串
	 * @param percode
	 * @return: void
	 */
	public void setPercode(java.lang.String percode) {
		this.percode = percode;
	}
	/**
	 * @Title: getParentid
	 * @Description: 获取父结点id
	 * @return
	 * @return: java.lang.Long
	 */
	public java.lang.Long getParentid() {
		return parentid;
	}
	
	/**
	 * @Title: setParentid
	 * @Description: 设置父结点id
	 * @param parentid
	 * @return: void
	 */
	public void setParentid(java.lang.Long parentid) {
		this.parentid = parentid;
	}
	/**
	 * @Title: getParentids
	 * @Description: 获取父结点id列表串
	 * @return
	 * @return: java.lang.String
	 */
	public java.lang.String getParentids() {
		return parentids;
	}
	
	/**
	 * @Title: setParentids
	 * @Description: 设置父结点id列表串
	 * @param parentids
	 * @return: void
	 */
	public void setParentids(java.lang.String parentids) {
		this.parentids = parentids;
	}
	/**
	 * @Title: getSortstring
	 * @Description: 获取排序号
	 * @return
	 * @return: java.lang.String
	 */
	public java.lang.String getSortstring() {
		return sortstring;
	}
	
	/**
	 * @Title: setSortstring
	 * @Description: 设置排序号
	 * @param sortstring
	 * @return: void
	 */
	public void setSortstring(java.lang.String sortstring) {
		this.sortstring = sortstring;
	}
	/**
	 * @Title: getAvailable
	 * @Description: 获取是否可用,1：可用，0不可用
	 * @return
	 * @return: java.lang.String
	 */
	public java.lang.String getAvailable() {
		return available;
	}
	
	/**
	 * @Title: setAvailable
	 * @Description: 设置是否可用,1：可用，0不可用
	 * @param available
	 * @return: void
	 */
	public void setAvailable(java.lang.String available) {
		this.available = available;
	}
	
}